package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffDifferentBatchBrotherDeptDto
 * @使用场景
 */
@Data
public class BffDifferentBatchBrotherDeptDto implements Serializable {

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("部门根节点ID")
    private String evaObjTargetCycleId;

    /**
     * 一级部门ID
     */
    @ApiModelProperty("一级部门ID")
    private String deptId;

    /**
     * 部门简称
     */
    @ApiModelProperty("部门简称")
    private String deptShortName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffDifferentBatchBrotherDeptDto that = (BffDifferentBatchBrotherDeptDto) o;
        return evaObjTargetCycleId == that.evaObjTargetCycleId && deptId == that.deptId && deptShortName == that.deptShortName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), evaObjTargetCycleId, deptId, deptShortName);
    }

}
